﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

//For HtmlMeta
using System.Web.UI.HtmlControls;

public partial class includes_ClientPageExample : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        if (!IsPostBack)
        {
            #region Set Page Title, Keywords and Description
            Master.Page.Title = lblPageTile.Text;

            //***Add Ref Header (using System.Web.UI.HtmlControls;)***
            HtmlMeta keywords = new HtmlMeta();
            keywords.Name = "keywords";
            keywords.Content = lblKeywords.Text;

            HtmlMeta description = new HtmlMeta();
            description.Name = "description";
            description.Content = lblDescription.Text;

            Page.Header.Controls.AddAt(2, keywords);
            Page.Header.Controls.AddAt(2, description);
            #endregion
        }
    }
}
